#!/usr/bin/env python
# -*- encoding: utf-8 -*-
'''
@File    :   __init__.py
@Time    :   2024-07-09 12:53:26
@Author  :   chakcy 
@Email   :   947105045@qq.com
@description   :   app初始化
'''

from fastapi import FastAPI
from starlette.staticfiles import StaticFiles

from .controller import router 
from .middleware import add_all_middlewares

app = FastAPI()
app.include_router(router=router, prefix='/api')
add_all_middlewares(app)
app.mount("/static/avatar", StaticFiles(directory="uploads/avatar"), name="static/avatar")


